#include <iostream>
#include <vector>
#include <algorithm>

int main() {
    int n;
    std::cout << "输入整数的个数: ";
    std::cin >> n;
    std::vector<int> numbers(n);
    
    std::cout << "输入" << n << "个整数: ";
    for(int i = 0; i < n; ++i) {
        std::cin >> numbers[i];
    }
    
    std::sort(numbers.begin(), numbers.end(), std::greater<int>());
    
    std::cout << "排序后的整数（从大到小）: ";
    for(int num : numbers) {
        std::cout << num << " ";
    }
    std::cout << std::endl;
    
    return 0;
}